﻿<Window x:Class="Profit.Views.TextView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        mc:Ignorable="d" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:local="clr-namespace:Profit.Controls" 
        d:DesignHeight="134" d:DesignWidth="320" 
        SizeToContent="WidthAndHeight"
        MinWidth="320" MinHeight="140"
        ResizeMode="NoResize"
        ShowInTaskbar="False" Icon="/Profit;component/Resources/Icons/app_32.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Text="{Binding Label}" Margin="5,0" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
        <TextBox Grid.Row="1" Text="{Binding Text}" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
        <local:DialogActionsPanel
            Grid.Row="2" 
            HorizontalAlignment="Right"
            VerticalAlignment="Bottom"
            ShowButtonCancel="True"
            ButtonOkCommand="{Binding ValidateCommand}" />
    </Grid>
</Window>
